  /**
   * Generate time : 2016-05-08 22:18:13
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cn.domain;

import com.baosight.iplat4j.util.NumberUtils;
import java.math.BigDecimal;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCNWbccyMain 
 * table comment : 外部抽查样数据主表 
 */
public class ZMCNWbccyMain extends DaoEPBase {

	private String fdKeyId = " ";		/* 主键*/
	private String fdReportTime = " ";		/* 汇报时间*/
	private String fdReportPerson = " ";		/* 汇报人*/
	private String fdReportDepartmentId = " ";		/* 汇报部门ID*/
	private String fdReportDepartment = " ";		/* 汇报部门*/
	private String fdYear = " ";		/* 年份*/
	private String fdMonth = " ";		/* 月份*/
	private String fdBjdw = " ";		/* 被检单位*/
	private String fdCcDate = " ";		/* 抽查日期*/
	private BigDecimal fdMyHad = new BigDecimal("0");		/* 空气干燥基氢含量(%)*/
	private String fdHyPerson = " ";		/* 化验人员*/
	private String fdProjectName = " ";		/* 项目名称*/
	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdReportTime");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("汇报时间");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdReportPerson");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("汇报人");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdReportDepartmentId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("汇报部门ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdReportDepartment");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("汇报部门");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdYear");
	eiColumn.setFieldLength(4);	
	eiColumn.setDescName("年份");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMonth");
	eiColumn.setFieldLength(2);	
	eiColumn.setDescName("月份");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdBjdw");
	eiColumn.setFieldLength(30);	
	eiColumn.setDescName("被检单位");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCcDate");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("抽查日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyHad");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("空气干燥基氢含量(%)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdHyPerson");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("化验人员");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdProjectName");
	eiColumn.setFieldLength(100);	
	eiColumn.setDescName("项目名称");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCNWbccyMain() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - 主键
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	/**
	 * get the fdReportTime - 汇报时间
	 * @return the fdReportTime
	 */
	public String getFdReportTime() {
		return this.fdReportTime;
	}
	
	/**
	 * set the fdReportTime - 汇报时间
	 */
	public void setFdReportTime(String fdReportTime) {
		this.fdReportTime = fdReportTime;
	}
	/**
	 * get the fdReportPerson - 汇报人
	 * @return the fdReportPerson
	 */
	public String getFdReportPerson() {
		return this.fdReportPerson;
	}
	
	/**
	 * set the fdReportPerson - 汇报人
	 */
	public void setFdReportPerson(String fdReportPerson) {
		this.fdReportPerson = fdReportPerson;
	}
	/**
	 * get the fdReportDepartmentId - 汇报部门ID
	 * @return the fdReportDepartmentId
	 */
	public String getFdReportDepartmentId() {
		return this.fdReportDepartmentId;
	}
	
	/**
	 * set the fdReportDepartmentId - 汇报部门ID
	 */
	public void setFdReportDepartmentId(String fdReportDepartmentId) {
		this.fdReportDepartmentId = fdReportDepartmentId;
	}
	/**
	 * get the fdReportDepartment - 汇报部门
	 * @return the fdReportDepartment
	 */
	public String getFdReportDepartment() {
		return this.fdReportDepartment;
	}
	
	/**
	 * set the fdReportDepartment - 汇报部门
	 */
	public void setFdReportDepartment(String fdReportDepartment) {
		this.fdReportDepartment = fdReportDepartment;
	}
	/**
	 * get the fdYear - 年份
	 * @return the fdYear
	 */
	public String getFdYear() {
		return this.fdYear;
	}
	
	/**
	 * set the fdYear - 年份
	 */
	public void setFdYear(String fdYear) {
		this.fdYear = fdYear;
	}
	/**
	 * get the fdMonth - 月份
	 * @return the fdMonth
	 */
	public String getFdMonth() {
		return this.fdMonth;
	}
	
	/**
	 * set the fdMonth - 月份
	 */
	public void setFdMonth(String fdMonth) {
		this.fdMonth = fdMonth;
	}
	/**
	 * get the fdBjdw - 被检单位
	 * @return the fdBjdw
	 */
	public String getFdBjdw() {
		return this.fdBjdw;
	}
	
	/**
	 * set the fdBjdw - 被检单位
	 */
	public void setFdBjdw(String fdBjdw) {
		this.fdBjdw = fdBjdw;
	}
	/**
	 * get the fdCcDate - 抽查日期
	 * @return the fdCcDate
	 */
	public String getFdCcDate() {
		return this.fdCcDate;
	}
	
	/**
	 * set the fdCcDate - 抽查日期
	 */
	public void setFdCcDate(String fdCcDate) {
		this.fdCcDate = fdCcDate;
	}
	/**
	 * get the fdMyHad - 空气干燥基氢含量(%)
	 * @return the fdMyHad
	 */
	public BigDecimal getFdMyHad() {
		return this.fdMyHad;
	}
	
	/**
	 * set the fdMyHad - 空气干燥基氢含量(%)
	 */
	public void setFdMyHad(BigDecimal fdMyHad) {
		this.fdMyHad = fdMyHad;
	}
	/**
	 * get the fdHyPerson - 化验人员
	 * @return the fdHyPerson
	 */
	public String getFdHyPerson() {
		return this.fdHyPerson;
	}
	
	/**
	 * set the fdHyPerson - 化验人员
	 */
	public void setFdHyPerson(String fdHyPerson) {
		this.fdHyPerson = fdHyPerson;
	}
	/**
	 * get the fdProjectName - 项目名称
	 * @return the fdProjectName
	 */
	public String getFdProjectName() {
		return this.fdProjectName;
	}
	
	/**
	 * set the fdProjectName - 项目名称
	 */
	public void setFdProjectName(String fdProjectName) {
		this.fdProjectName = fdProjectName;
	}
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdReportTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReportTime")), fdReportTime));
		setFdReportPerson(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReportPerson")), fdReportPerson));
		setFdReportDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReportDepartmentId")), fdReportDepartmentId));
		setFdReportDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReportDepartment")), fdReportDepartment));
		setFdYear(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdYear")), fdYear));
		setFdMonth(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMonth")), fdMonth));
		setFdBjdw(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdBjdw")), fdBjdw));
		setFdCcDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCcDate")), fdCcDate));
		setFdMyHad(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMyHad")), fdMyHad));
		setFdHyPerson(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdHyPerson")), fdHyPerson));
		setFdProjectName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProjectName")), fdProjectName));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdReportTime",StringUtils.toString(fdReportTime, eiMetadata.getMeta("fdReportTime")));	
			map.put("fdReportPerson",StringUtils.toString(fdReportPerson, eiMetadata.getMeta("fdReportPerson")));	
			map.put("fdReportDepartmentId",StringUtils.toString(fdReportDepartmentId, eiMetadata.getMeta("fdReportDepartmentId")));	
			map.put("fdReportDepartment",StringUtils.toString(fdReportDepartment, eiMetadata.getMeta("fdReportDepartment")));	
			map.put("fdYear",StringUtils.toString(fdYear, eiMetadata.getMeta("fdYear")));	
			map.put("fdMonth",StringUtils.toString(fdMonth, eiMetadata.getMeta("fdMonth")));	
			map.put("fdBjdw",StringUtils.toString(fdBjdw, eiMetadata.getMeta("fdBjdw")));	
			map.put("fdCcDate",StringUtils.toString(fdCcDate, eiMetadata.getMeta("fdCcDate")));	
			map.put("fdMyHad",StringUtils.toString(fdMyHad, eiMetadata.getMeta("fdMyHad")));	
			map.put("fdHyPerson",StringUtils.toString(fdHyPerson, eiMetadata.getMeta("fdHyPerson")));	
			map.put("fdProjectName",StringUtils.toString(fdProjectName, eiMetadata.getMeta("fdProjectName")));	
			
		return map;
	
	}
}